<template>
  <div class="navBottom">
    <!-- 底部导航栏 -->
    <div class="navbar">
      <router-link to="/">
        <img src="../../public/img/f1.png" alt="首页">
        <span>首页</span>
      </router-link>
      <router-link to="/">
        <img src="../../public/img/f3.png" alt="直播">
        <span>直播</span>
      </router-link>
      <router-link to="/class">
        <img src="../../public/img/f5.png" alt="课程">
        <span>课程</span>
      </router-link>
      <router-link to="/">
        <img src="../../public/img/f2.png" alt="订阅">
        <span>订阅</span>
      </router-link>
      <router-link to="/info">
        <img src="../../public/img/f4.png" alt="我的">
        <span>我的</span>
      </router-link>
    </div>
  </div>
</template>

<script setup>

</script>

<style>
.navBottom {
  padding-bottom: 60px; /* 预留底部导航栏的空间 */
}

.navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: #fff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid #ddd;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.navbar a {
  text-align: center;
  color: #888;
  font-size: 12px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.navbar a img {
  width: 24px;
  height: 24px;
  margin-bottom: 2px;
}

.navbar a.active img {
  filter: brightness(1.5);
}

.navbar a.active span {
  color: #007bff;
}
</style>
